package com.hangzhou.xyj.net.request;

import com.hangzhou.xyj.net.request.base.BaseRequest;
import com.hangzhou.xyj.utils.constants.API;

/**
 * Created by yaohuix on 2016/2/22  15:40
 * <p/>
 * 说明：更新师从 请求
 */
public class UpdateTeacherReq extends BaseRequest {

    public UpdateTeacherReq(int userId, String teacher) {
        setUserId(userId);
        setTeacher(teacher);
    }

    private void setTeacher(String teacher) {
        add("teacher", teacher);
    }

    private void setUserId(int userId) {
        add("userId", userId);
    }

    @Override
    public String getUrl() {
        return API.UPDATE_TEACHER;
    }
}
